package com.wkbb.common.enums;

public enum CountTypeEnum {
    /**
     * 图片
     */
    IMGTYPE(1,"img"),
    /**
     * 视频
     */
    MEDIATYPE(2,"media"),
    /**
     * 文件
     */
    TEXTTYPE(3,"text");


    private CountTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (CountTypeEnum countTypeEnum : CountTypeEnum.values()) {
            if (countTypeEnum.getValue().intValue()==value) {
                return countTypeEnum.getDesc();
            }
        }
        return null;
    }
}
